<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Twój wirtualny trener</title>
<%@ page contentType="text/html; charset=utf-8" %>
<%

	String zalogowano = (String) request.getAttribute("zalogowano");
	if (zalogowano == "tak") {
%>


<!--  skrypty -->
<script type='text/javascript' src='script/myScripts.js'></script>
<script type='text/javascript' src='script/jquery-1.6.min.js'></script>
<script type='text/javascript'
	src='script/jquery-ui-1.8.16.custom.min.js'></script>
<script language="javascript" src='script/admin.js' type=""></script>

<style>
		body { font-size: 62.5%; }
		label, input { display:block; }
		input.text { margin-bottom:12px; width:95%; padding: .4em; }
		fieldset { padding:0; border:0; margin-top:25px; }
		h1 { font-size: 1.2em; margin: .6em 0; }
		div#users-contain { width: 350px; margin: 20px 0; }
		div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
		div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
		.ui-dialog .ui-state-error { padding: .3em; }
		.validateTips { border: 1px solid transparent; padding: 0.3em; }
</style>
	
<!--  css -->
<link rel='stylesheet' type='text/css' href='css/style.css' />
<link href="css/le-frog/jquery-ui-1.7.3.custom.css" rel="stylesheet"
	type="text/css" />
</head>
<body>
	<div class="ui-widget info" id="info_message">
		<div style="margin-top: 20px; padding: 0 .7em;"
			class="ui-state-highlight ui-corner-all">
			<p>
				<span style="float: left; margin-right: .3em;"
					class="ui-icon ui-icon-info"></span> <strong>Hey!</strong> <span
					id="info_text">Sample ui-state-highlight style.</span>
			</p>
		</div>
	</div>
	<!-- content -->
	<div id="gc-pagecontent">
		<div id="tabs"
			class="gtb ui-tabs ui-widget ui-widget-content ui-corner-all">
			<ul
				class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
				<li class="ui-state-default ui-corner-top"><a id="home"
					href="#home-tab" class="tab">Witaj</a>
				</li>
				<li class="ui-state-default ui-corner-top"><a id="instrument"
					href="#instrument-tab" class="tab">Sprzęt</a>
				</li>
				<li class="ui-state-default ui-corner-top"><a id="exercise"
					href="#exercise-tab" class="tab">Ćwiczenia</a>
				</li>
				<li class="ui-state-default ui-corner-top"><a id="time"
					href="#time-tab" class="tab">Możliwosci czasowe</a>
				</li>
				<li class="ui-state-default ui-corner-top"><a id="intensity"
					href="#intensitytab" class="tab">Intensywność</a>
				</li>
				<li class="ui-state-default ui-corner-top"><a id="goal"
					href="#goal-tab" class="tab">Cele</a>
				</li>
				<li class="ui-state-default ui-corner-top"><a id="batch"
					href="#batch-tab" class="tab">Partie miesniowe</a>
				</li>
			</ul>

			<!-- home page content -->
			<div class="g-unit" id="home-tab">
				<h2>Witaj Adminie</h2>
				<p>Dzięki temu panelowi mozesz naprawdę wiele..</p>
			</div>
			<div class="g-unit" id="instrument-tab">
				<h2>Dodawanie sprzętu</h2>
				
			<div class="gymDataAdd">
			<div  title="Dodaj nowy sprzęt">
				<form id="instrument-form">
					<label for="id">Id</label>
					<input type="text" name="id" id="id" class="text ui-widget-content ui-corner-all" />
					<label for="name">Nazwa</label>
					<input type="text" name="title" id="title" class="text ui-widget-content ui-corner-all" />
					<input type="reset" id="instrument-reset" class="cancel" title="Reset" value="Reset" style="visibility: hidden"/>
				</form>
			</div>						
			<div id="instrument-contain" class="ui-widget">
				<h1>Dodane sprzęt</h1>
				<table id="instrument-table" class="ui-widget ui-widget-content">
					<thead>
						<tr class="ui-widget-header ">
							<th>Id</th>
							<th>Nazwa</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td></td>
						</tr>
					</tbody>
				</table>
			</div>
			<button id="create-instrument">Dodaj sprzęt</button>
			</div><!-- end add sprzet -->
			
			</div>
			
			<div class="g-unit" id="exercise-tab">
				<h2>Dodawanie ćwiczenie</h2>
			<div class="gymDataAdd">
			<div  title="Dodaj nowe cwiczenie">
				<form id="exercise-form">
					<label for="id">Id</label>
					<input type="text" name="id" id="id" class="text ui-widget-content ui-corner-all" />
					<label for="title">Nazwa</label>
					<input type="text" name="title" id="title" class="text ui-widget-content ui-corner-all" />
					<label for="description">Opis</label>
					<input type="text" name="description" id="description" class="text ui-widget-content ui-corner-all" />
					<label for="id">Przyrzad</label>
					<select size="1" id="select-exercise" name="exercise">

					</select>
					<label for="id">Partia</label>
					<select size="1" id="select-batch" name="batch">

					</select>
					<input type="reset" id="exercise-reset" class="cancel" title="Reset" value="Reset" style="visibility: hidden"/>
				</form>
			</div>						
			<div id="exercise-contain" class="ui-widget">
				<h1>Dodane ćwiczenia</h1>
				<table id="exercise-table" class="ui-widget ui-widget-content">
					<thead>
						<tr class="ui-widget-header ">
							<th>Id</th>
							<th>Nazwa</th>
							<th>Opis</th>
							<th>Przyrzad</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td></td>
						</tr>
					</tbody>
				</table>
			</div>
			<button id="create-exercise">Dodaj cwiczenie</button>
			</div><!-- end add cwiczenie -->
			
			</div>
			<div class="g-unit" id="time-tab">
				<h2>Dodawanie mozliwosci czasowych</h2>
								
			<div class="gymDataAdd">
			<div  title="Dodaj nowy sprzęt">
				<form id="time-form">
					<label for="id">Id</label>
					<input type="text" name="id" id="id" class="text ui-widget-content ui-corner-all" />
					<label for="title">Nazwa</label>
					<input type="text" name="title" id="title" class="text ui-widget-content ui-corner-all" />
					<input type="reset" id="time-reset" class="cancel" title="Reset" value="Reset" style="visibility: hidden"/>
				</form>
			</div>						
			<div id="time-contain" class="ui-widget">
				<h1>Dodane możliwości czasowe</h1>
				<table id="time-table" class="ui-widget ui-widget-content">
					<thead>
						<tr class="ui-widget-header ">
							<th>Id</th>
							<th>Nazwa</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td></td>
						</tr>
					</tbody>
				</table>
			</div>
			<button id="create-time">Dodaj możliwość czasową</button>
			</div><!-- end add sprzet -->
			
			</div>
			<div class="g-unit" id="intensity-tab">
				<h2>Dodawanie mozliwosci intensywności</h2>
								
			<div class="gymDataAdd">
			<div  title="Dodaj nowy sprzęt">
				<form id="intensity-form">
					<label for="id">Id</label>
					<input type="text" name="id" id="id" class="text ui-widget-content ui-corner-all" />
					<label for="title">Nazwa</label>
					<input type="text" name="title" id="title" class="text ui-widget-content ui-corner-all" />
					<input type="reset" id="intensity-reset" class="cancel" title="Reset" value="Reset" style="visibility: hidden"/>
				</form>
			</div>						
			<div id="intensity-contain" class="ui-widget">
				<h1>Dodane mozliwosci intensywnosci</h1>
				<table id="intensity-table" class="ui-widget ui-widget-content">
					<thead>
						<tr class="ui-widget-header ">
							<th>Id</th>
							<th>Nazwa</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td></td>
						</tr>
					</tbody>
				</table>
			</div>
			<button id="create-intensity">Dodaj możliwosć intensywności</button>
			</div><!-- end add sprzet -->
			
			</div>
			<div class="g-unit" id="goal-tab">
				<h2>Dodawanie celów</h2>
								
			<div class="gymDataAdd">
			<div  title="Dodaj nowy sprzęt">
				<form id="goal-form">
					<label for="id">Id</label>
					<input type="text" name="id" id="id" class="text ui-widget-content ui-corner-all" />
					<label for="title">Nazwa</label>
					<input type="text" name="title" id="title" class="text ui-widget-content ui-corner-all" />
					<input type="reset" id="goal-reset" class="cancel" title="Reset" value="Reset" style="visibility: hidden"/>
				</form>
			</div>						
			<div id="goal-contain" class="ui-widget">
				<h1>Dodane cele</h1>
				<table id="goal-table" class="ui-widget ui-widget-content">
					<thead>
						<tr class="ui-widget-header ">
							<th>Id</th>
							<th>Nazwa</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td></td>
						</tr>
					</tbody>
				</table>
			</div>
			<button id="create-goal">Dodaj cel</button>
			</div><!-- end add sprzet -->
			
			</div>
			
			<div class="g-unit" id="batch-tab">
				<h2>Dodawanie partii do cwiczen</h2>
				
			<div class="gymDataAdd">
			<div  title="Dodaj nowa partie">
				<form id="batch-form">
					<label for="id">Id</label>
					<input type="text" name="id" id="id" class="text ui-widget-content ui-corner-all" />
					<label for="name">Nazwa</label>
					<input type="text" name="title" id="title" class="text ui-widget-content ui-corner-all" />
					<input type="reset" id="batch-reset" class="cancel" title="Reset" value="Reset" style="visibility: hidden"/>
				</form>
			</div>						
			<div id="batch-contain" class="ui-widget">
				<h1>Dodane partie miesniowe</h1>
				<table id="batch-table" class="ui-widget ui-widget-content">
					<thead>
						<tr class="ui-widget-header ">
							<th>Id</th>
							<th>Nazwa</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td></td>
						</tr>
					</tbody>
				</table>
			</div>
			<button id="create-batch">Dodaj cwiczenie</button>
			</div><!-- end add sprzet -->
			
			</div>

		</div>
<script type="text/javascript">

$(window).load(function () {
		adminFunctions();
	});
</script>
	</div>
</body>
</html>
<%
	} else {
		out.println("Dostep do tej strefy zabroniony");
	}
%>